#include <iostream>
#include <memory>
#include <cassert>
#include <fstream>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "HttpServer.hpp"
#include "Usage.hpp"
int main(int argv, char *args[])
{
    if (argv != 2)
    {
        cout << "usage error" << endl;
    }
    int port = stoi(args[1]);
    unique_ptr<HttpServer> httpserver(new HttpServer(port));
    httpserver->Run();
    return 0;
}